package com.example.demo.innoket.util;



/**
 * 生成文件的文件类型
 *
 */
public enum FileType {

	ENTITY("Models", Resources.ENTITY_TEMPLATE,".php"),
	REQUESTS("Requests", Resources.REQUESTS_TEMPLATE,"Request.php"),
	SERVICE_ADMIN("Services.Admin",Resources.SERVICE_TEMPLATE_ADMIN,"Service.php"),
	CONTROLLER_ADMIN("Controllers.Admin", Resources.CONTROLLER_TEMPLATE_ADMIN,"Controller.php"),
	CONTROLLER_INNER("Controllers.Inner", Resources.CONTROLLER_TEMPLATE_INNER,"Controller.php"),
	CONTROLLER_MEMBER("Controllers.Member", Resources.CONTROLLER_TEMPLATE_MEMBER,"Controller.php"),
	ROUTE("route",Resources.ROUTE_TEMPLATE,".php");


	// 成员变量
	private String type;//文件类型
	//	private String pakage;//包声明
	private String template;//模板
	private String fileNameExtension;//文件扩展

	// 构造方法
	private FileType(String type,String template,String fileNameExtension) {
		this.type = type;
		this.template=template;
		this.fileNameExtension=fileNameExtension;
	}

	public String getType() {
		return type;
	}

	public String getTemplate(){
		return template;
	}

	public String getFileNameExtension(){
		return fileNameExtension;
	}

	public static void main(String[] args) {
		System.out.println(FileType.ENTITY.getTemplate());
	}

}
